<?php
class Macys_Api_V2_Shoppingbag_AddItem extends Macys_Api_V2_Shoppingbag_Abstract {

	private $upcid;
	private $quantity;

	protected function init() {
		$this->allowedParams = array("upcid", "quantity", "productid", "color", "size", "type");
		$this->shoppingbagEndpoint = "/item";
		$this->method = "POST";
		$this->contentType = self::JSON;
	}



	


	protected function setItemsRequest($arr) {
		/*{"additemsrequest" :{
		 "productid":429757,
		 "color":"Black",
		 "size":"8",
		 "type":"OXFORDS",
		 "quantity":1}} */
		//$body = array ("additemsrequest" => array ("upcid" => $this->upcid , "quantity" => $this->quantity));
		$body = array("additemsrequest" => $arr);
		$this->rawinput = Zend_Json::encode($body);
	}



}